<?php
/**
 * The world of warcraft armory library was created by Marc Binder. The called
 * product will be deployed by Tof Technologies, Germany. All sources contain to 
 * the New BSD Licence. Self created extensions can be contained in the hall of 
 * fame. So the community has the chance to get a overview of all parsers and
 * handlers, which are really effective.
 * 
 * Get more informations:
 * http://code.google.com/p/warcraftarmory/
 * 
 * @author      Marc Binder <marcandrebinder@gmail.com>
 * @copyright   (c) Tof Technologies, Germany - 2010
 * @license     New BSD Licence
 * @package     Wow_Armory
 * @version     $Id$
 */

/**
 * Wow_Armory_Parse_Result_Registry
 * 
 * @category    Wow_Armory
 * @package     Parse
 * @subpackage  Result_Registry
 * @example     n/A
 */
class Wow_Armory_Parse_Result_Registry
{
    
    /**
     * Includes the registry as an array.
     * 
     * @var array
     */
    private static $_registry = array();
    
    /**
     * Adds a new registry entry by name.
     * 
     * @param  string $name
     * @param  mixed $result
     * @return void
     */
    public static function set($name, $result)
    {
        self::$_registry[$name] = $result;
    }
    
    /**
     * Gets a registry value by name (string).
     * 
     * @param  string $name
     * @return mixed
     */
    public static function get($name)
    {
        return self::$_registry[$name];
    }
    
}